package priv.lhy.sso.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import priv.lhy.annotation.Anoymous;

/**
 * author : lihy
 * date : 2019/2/13 16:04
 * <p>
 * 页面跳转控制类
 */
@Controller
public class MainController extends BaseController{

    /**
     * 主页
     *
     * @return
     */
    @RequestMapping("/index")
    public String indexPage() {
        return "index";
    }

    /**
     * 登录页
     *
     * @return
     */
    @Anoymous
    @RequestMapping("/loginPage")
    public String loginPage() {
        return "login";
    }

    /**
     * 注册页
     *
     * @return
     */
    @Anoymous
    @RequestMapping("/registerPage")
    public String registerPage() {
        return "register";
    }
}
